import java.awt.Color;
import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class Cabin extends JPanel{

	private static final long serialVersionUID = 1L;
	
	Cabin(){
		JLabel label = new JLabel("", new ImageIcon(getClass().getResource("/Pics/cabin.gif")), JLabel.CENTER);
		setLayout(null);
		add(label);
		label.setBounds(0, 0, 24, 24);
		setSize(24,24);
		setBackground(Color.GREEN);
	}
	@Override
	public Dimension getMinimumSize(){
		return new Dimension(24,24);	
	}
	@Override
	public Dimension getMaximumSize(){
		return new Dimension(24,24);	
	}
	@Override
	public Dimension getPreferredSize(){
		return new Dimension(24,24);	
	}
}
